package com.cloudfun.campusshare.service;

import com.cloudfun.msgsubscribe.DeviceInfo;

/**
 * Created by Huqin on 2020/5/28
 */
public interface DeviceAlarmService {

    /**
     * 触发告警
     *
     * @param imei
     * @param alarmName
     */
    void onAlarm(String imei, String alarmName);

    /**
     * 告警解除
     *
     * @param imei
     */
    void onAlarmCancel(String imei);

    /**
     * 触发告警
     *
     * @param deviceInfo
     */
    void onAlarm(DeviceInfo deviceInfo);
}
